package com.dunshan.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.testng.annotations.Test;

/**
 * @author .dunshan
 * @program: dunshan-pef
 * @description: 切入点
 * @date 2021-10-04 10:19:58
 */

public class MtAspect {

    /**
     * 切面类完成
     *
     * @param point
     * @return
     */
    @Around("ex")
    public Object arround(ProceedingJoinPoint point) {
        Object proceed = null;
        try {
            proceed = point.proceed();
        } catch (Throwable throwable) {
            throwable.printStackTrace();
        }
        return proceed;
    }

    @Test
    public void Test01() {
//        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("/applicationContext.xml");


    }
}
